package com.to8to.thrift.esb.async.example.server;

import java.util.Random;

import org.apache.thrift.TException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.to8to.thrift.esb.async.example.ServiceC;

public class ServiceCIface implements ServiceC.Iface {
	
	Random random = new Random();
	private Logger logger = LoggerFactory.getLogger(ServiceCIface.class);
	@Override
	public double valueC(double c) throws TException {
//		try {
//			int ms = random.nextInt(50);
//			Thread.sleep(ms);
//		} catch (InterruptedException e) {
//			// TODO Auto-generated catch block
//			e.printStackTrace();
//		}
		logger.info("execute valueC(double {}) method", c);
		return c;
	}

}
